<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>DOMContentLoaded事件</title>
</head>

<body>
    <script>
        // 文档：
        // https://developer.mozilla.org/zh-CN/docs/Web/API/Document/DOMContentLoaded_event

        document.addEventListener('DOMContentLoaded', () => {
            console.log('DOMContentLoaded')
        })
    </script>
</body>

</html>